import request from '@/utils/request'

// 查询已审核列表
export function listAudited(query) {
  return request({
    url: '/activity/Audited/list',
    method: 'get',
    params: query
  })
}

// 查询商户列表
export function listPublisher() {
  return request({
    url: '/activity/InformationDelivery/publisherList',
    method: 'get'
  })
}

// 查询已审核详细
export function getAudited(gpId) {
  return request({
    url: '/activity/Audited/' + gpId,
    method: 'get'
  })
}

// 新增已审核
export function addAudited(data) {
  return request({
    url: '/activity/Audited',
    method: 'post',
    data: data
  })
}

// 修改已审核
export function updateAudited(data) {
  return request({
    url: '/activity/Audited',
    method: 'put',
    data: data
  })
}

// 删除已审核
export function delAudited(gpId) {
  return request({
    url: '/activity/Audited/' + gpId,
    method: 'delete'
  })
}
